package com.hae.shop.micoshopportalweb.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.session.data.redis.config.annotation.web.http.EnableRedisHttpSession;

/**
 * 分布式sessionConfig
 * springboot版本为2.1以上时需引入spring-boot-starter-security
 */
//maxInactiveIntervalInSeconds为SpringSession的过期时间（单位：秒）
@Configuration
@EnableRedisHttpSession(maxInactiveIntervalInSeconds = 1800)
public class SessionConfig {

}
